
/** config indexes **/
db.getCollection("config").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** links indexes **/
db.getCollection("links").ensureIndex({
  "_id": NumberInt(1)
},[
  
]);

/** config records **/
db.getCollection("config").insert({
  "_id": ObjectId("535777ba1dad8e838e6168a7"),
  "call_loop_limit_times": "100",
  "callback_sec": "600",
  "created_time": ISODate("2014-04-23T08:20:10.925Z"),
  "email": [
    {
      "name": "ThaiND",
      "email": "thaind@sunnet.vn"
    },
    {
      "name": "TrinhNT",
      "email": "trinhnt@sunnet.vn"
    }
  ],
  "sender": {
    "name": "Admin call link service [Thaind]",
    "email": "thaind@sunnet.vn",
    "pass": "STTmaple"
  },
  "timeout_seconds": "60",
  "is_load_link": false
});

/** links records **/
db.getCollection("links").insert({
  "_id": ObjectId("535742754ac3d35506e818cd"),
  "created_time": ISODate("2014-04-21T10:19:40.341Z"),
  "description": "Xử lý tin tức",
  "name": "Xử lý tin tức hay.qplay.vn",
  "status": true,
  "url": "http:\/\/hay.qplay.vn\/api\/update-news"
});

/** system.indexes records **/
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "name": "_id_",
  "ns": "call_link.config"
});
db.getCollection("system.indexes").insert({
  "v": NumberInt(1),
  "key": {
    "_id": NumberInt(1)
  },
  "name": "_id_",
  "ns": "call_link.links"
});
